package edu.zac.service;

import edu.zac.mapper.EmpMapper;
import edu.zac.pojo.Emp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Title
 * @Author Peihan.Zhang
 * @Email zhangpeihan@sjgtw.com
 * @Date 2021/10/21 22:39
 * @Versions 1.0
 */
@Service("target")
public class EmpServiceImpl implements  EmpService {

    @Autowired
    private EmpMapper empMapper;
    @Override
    public void add(Emp emp) {
        empMapper.add(emp);
    }

    public void delete(Emp emp){
        System.out.println("删除数据"+emp.toString());
    }
}
